/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:35
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:35
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL

/* 托管预算增减记录 */
// 新增托管预算增减记录
const amountChangeCreate = (params) => axios.post(baseUrl + url.amountChange.create, params)

// 删除托管预算增减记录
const amountChangeDelete = (id) => axios.delete(baseUrl + url.amountChange.delete + `/${id}`)

// 修改托管预算增减记录
const amountChangeUpdate = (params, id) => axios.post(baseUrl + url.amountChange.update + `/${id}`, params)

// 获取某个托管预算增减记录
const amountChangeLoad = (id) => axios.get(baseUrl + url.amountChange.load + `/${id}`)

// 获取托管预算增减记录列表
const amountChangePage = (params) => axios.get(baseUrl + url.amountChange.page, { params })

export default {
    amountChangeCreate,
    amountChangeDelete,
    amountChangeUpdate,
    amountChangeLoad,
    amountChangePage,
}
